package com.xiandou.open.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;


/**
 * @author rocpeng
 *
 * 扫描接口路径
 * @EnableFeignClients(basePackages = {"com.xiandou.service"})
 * 不加载数据库资源
 * @SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
 *
 */
@EnableFeignClients(basePackages = {"com.xiandou.service"})
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableCircuitBreaker
public class OpenApiApplication {
    public static void main(String[] args) {
        SpringApplication.run(OpenApiApplication.class, args);
    }
}
